<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/page/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>招聘结果跟踪表</title>
<link  href="${ctx}/css/common.css" rel="stylesheet" type="text/css" />
<link  href="${ctx}/css/recruitmentresult.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="${ctx}/js/recruitmentresult/recruitmentresult.js"></script>
<script type="text/javascript">
	function searchSubmit(){
		document.getElementById('btn_search').disabled="disabled";
	}
</script>
</head>
<body>
<center><h2>招聘结果跟踪表</h2></center>
<form action="${ctx}/recruitmentresult/list.do" method="post" onsubmit="searchSubmit();">
	<table width="80%" align="center" cellpadding="1" cellspacing="1"
		bgcolor="#CCCCCC">
		<tr align="center" height="30" >
			<td>可根据：员工姓名，公司，部门，职位名称，状态，原因，备注查询</td>
		</tr>
		<tr>
			<td align="center">
				<input name="queryCondition" style="font-size:12px;"  id="queryCondition" value="${queryCondition}"/>
				<input type="submit"  value="查询" style="font-size:12px;" id="btn_search"/>
			</td>
		</tr>
	</table>
</form>
<p/>
<p/>
<table align="center" cellpadding="1" cellspacing="1" class="stripe_tb" width="100%">
	<tr>
		<th align="center" width="5%">编号</th>
		<th align="center" width="10%">员工姓名</th>
		<th align="center" width="12%">公司</th>
		<th align="center" width="8%">部门</th>
		<th align="center" width="10%">登记日期</th>
		<th align="center" width="10%">职位名称</th>
		<th align="center" width="8%">状态</th>
		<th align="center" width="15%">原因</th>
		<th align="center" width="15%">备注</th>
		<th align="center" width="12%">操作</th>
	</tr>
	<c:if test="${page.totalSize gt 0}">
		<c:forEach items="${page.result}" var="pageData" varStatus="status">
			<tr height="10" align="center" valign="middle" bgcolor="#FFFFFF" id="_recen${pageData.id}">
				<td align="center" title="编号">${pageData.id}</td>
				<td align="center" title="员工姓名">${pageData.candidateName}</td>
				<td align="center" title="公司">${pageData.complay.complayName}</td>
				<td align="center" title="部门">${pageData.department.departmentName}</td>
				<td align="center" title="登记日期"> <fmt:formatDate value="${pageData.registrationDate}" pattern="yyyy-MM-dd"/></td>
				<td align="center" title="职位名称">${pageData.position.positionName}</td>
				<td align="center" title="状态">
				<c:choose>
					<c:when test="${pageData.status == '0'}">可面试</c:when>
					<c:when test="${pageData.status == '1'}">不可面试</c:when>
					<c:when test="${pageData.status == '2'}">初试</c:when>
					<c:when test="${pageData.status == '3'}">复试</c:when>
					<c:when test="${pageData.status == '4'}">录用</c:when>
					<c:when test="${pageData.status == '5'}">不合格</c:when>
					<c:when test="${pageData.status == '6'}">人才储备</c:when>
					<c:when test="${pageData.status == '7'}">跟踪</c:when>
					<c:when test="${pageData.status == '8'}">转正</c:when>
					<c:when test="${pageData.status == '9'}">其它</c:when>
					<c:when test="${pageData.status == '10'}">离职</c:when>
					<c:otherwise>其它</c:otherwise>
				</c:choose>
				</td>
				<td align="left" title="原因">${pageData.reason}</td>
				<td align="left" title="备注">${pageData.remark}</td>
				<td>
				<a href="${ctx}/recruitmentresult/updateUI.do?id=${pageData.id}">修改</a>
<authz:authorize ifAllGranted="AUTH_RECRUITMENTRESULT_DELETE">
				<br/><a href="javascript:del('${ctx}/recruitmentresult/del.do?id=${pageData.id}','${pageData.id}')">删除</a>
</authz:authorize>
				</td>
			</tr>
		</c:forEach>
	</c:if>
	<c:if test="${page.totalSize le 0}">
		<tr bgcolor="#FFFFFF">
			<td colspan="10" align="center">暂无信息</td>
		</tr>
	</c:if>
	<tr>
		<td colspan="10" align="right">
		<page:paging goUrl="${ctx}/recruitmentresult/list.do"  pageUtil="${page}" query="${conditionMap}"/>
		</td>
	</tr>
</table>
</body>
</html>